package star.cloud.asme.asmePerson.asmePersonTrain.asmePersonTrainInstrutor;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import star.cloud.asme.base.dto.Result;
import star.cloud.asme.base.mybatis.IBaseController;

@RestController
@RequestMapping("/asmePerson/asmePersonTrainInstructor")
@RequiredArgsConstructor
public class AsmePersonTrainInstructorController implements IBaseController<AsmePersonTrainInstructor> {

    private final AsmePersonTrainInstructorService asmePersonTrainInstructorService;

    @Override
    public Result<AsmePersonTrainInstructor> getOneByCondition(String columnName, Object columnValue) {
        return asmePersonTrainInstructorService.getOneByCondition(columnName, columnValue);
    }

    @Override
    public Result<IPage<AsmePersonTrainInstructor>> getListByConditionsWithPage(AsmePersonTrainInstructor conditions) {
        return asmePersonTrainInstructorService.getListByConditionsWithPage(conditions);
    }

    @Override
    public Result<AsmePersonTrainInstructor> insertOne(AsmePersonTrainInstructor entity) {
        return asmePersonTrainInstructorService.insertOne(entity);
    }

    @Override
    public Result<AsmePersonTrainInstructor> updateOne(AsmePersonTrainInstructor entity) {
        return asmePersonTrainInstructorService.updateOne(entity);
    }

    @Override
    public Result<?> logicalDeleteById(Long id) {
        return asmePersonTrainInstructorService.logicalDeleteById(id);
    }
}
